﻿/// <reference path="MyApp.js" />
(function () {
    //Create a Module 
    var app = angular.module('MyApp', ['ngRoute']);  // Will use ['ng-Route'] when we will implement routing
    //Create a Controller
    app.controller('TestController', function ($scope) {  // here $scope is used for share data between view and controller
        $scope.Message = "Yahoooo! we have successfully done our first part.";
        $scope.customers = [
                           { name: 'bilel', city: 'megrine' },
                            {name:'Asma',city:'bardo'},
                            { name: 'Saida', city: 'Mornag' }
                          ];
    });
})();